package com.kdtech.entity.data;

import com.kdtech.utils.DateUtils;

/**
 * 新闻实体类
 *
 * @author Persh
 *
 */
public class NewsMeta extends AbstractMeta {
	/**
	 * 评论数
	 */
	private Integer commentNum=0;
	/**
	 * 点击数
	 */
	private Integer clickNum=0;


	public Integer getCommentNum() {
		return commentNum;
	}
	public void setCommentNum(Integer commentNum) {
		this.commentNum = commentNum;
	}
	public Integer getClickNum() {
		return clickNum;
	}
	public void setClickNum(Integer clickNum) {
		this.clickNum = clickNum;
	}

	@Override
	public String toString() {
		return "NewsMeta :\r\n" +
		"url="+this.getUrl()+"\r\n"+
		"title="+this.getTitle()+"\r\n"+
		"author="+this.getAuthor()+"\r\n"+
		"date=" + (this.getDate()==null?"":DateUtils.format(this.getDate(), "yyyy-MM-dd HH:mm")) + "\r\n" +
		"clickNum=" + getClickNum() + "\r\n"+
		"commentNum=" + getCommentNum() + "\r\n"+
		"content=" + getContent() + "\r\n"+
		"updateUrl="+this.getUpdateUrl()+"\r\n";

	}

	
	
}
